package com.is.add.util.DimensionUtil;

import com.is.add.model.OrderBase;

/**
 * 城市维度
 * @author jackie
 */
public class SportsTypeDimension implements Dimension<OrderBase>{
    /**
     * 通过基础数据分析出维度对应key值
     *
     * @param baseBean 基础Bean
     * @return 维度key
     */
    @Override
    public String compare(OrderBase baseBean) {
        int id=baseBean.getSportsType();
        String sportsTypeName = baseBean.getSportsTypeName();
        return id+"-"+sportsTypeName;
    }

    @Override
    public String getTitle() {
        return "运动类型";
    }
}
